package org.service;

import org.model.Floor;
import org.model.Thread;

import java.util.List;

/**
 * Created by tedzy on 2015/5/14.
 * forum service
 */
public interface ForumService {
    int newThread(String title);
    boolean addFloor(int threadId, int floorId);
    Thread readThread(int id);
    int newFloor(int threadId, int uid, String content);
    int newInFloor(int floorId, int uid, String content);
    boolean addInFloor(int parentFloor, int inFloor);
    List<Floor> readFloors(String floorsCsv);
    List<Thread> getThreads();
    int incZan(int floorId);
}
